/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sp.controller;

import sp.form.Hal7;
import sp.model.B1;
import sp.model.B5;

/**
 *
 * @author StephenCN
 */
public class B5Controller {
    private final B5 b5;
    private final B1 b1;
    private final Hal7 b5view;
    
    public B5Controller(B5 b5,B1 b1,Hal7 b5view){
        this.b5 = b5;
        this.b5view = b5view;
        this.b1 = b1;
    }
    
    public B5 B5hasil(){
        b5.setNksb5(b1.getNks());
        b5.setCatatan(b5view.getTextAreaCatatan1().getText());
        return b5;
    }

    B5 B5nr() {
        b5.setNksb5(b1.getNks());
        return b5;
    }

}
